package jvm;

import java.util.ArrayDeque;
import java.util.Deque;

public class JvmStack {

    private final Deque<StackFrame> stack = new ArrayDeque<>();

    public StackFrame pop(){
        return stack.pop();
    }

    public void push(StackFrame frame){
        stack.push(frame);
    }

    public StackFrame peek(){
        return stack.peek();
    }

    public boolean isEmpty(){
        return stack.isEmpty();
    }
}
